package com.hyj.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
//向eureka注册自己
@EnableEurekaClient
//自己是config的server端     http://config3344.com:3344/master/config_dev.yml    结果是json
//http://config3344.com:3344/master/config_dev.yml不行，http://config3344.com:3344/master/config-dev.yml可以，结果是config内容，官网config名字有格式要求！！！
//上面成功后，作为configServer拿到config内容后，其他模块理应从configServer（老大）这里读取config
@EnableConfigServer
public class ConfigMain3344 {
    public static void main(String[] args) {
        SpringApplication.run(ConfigMain3344.class, args);
    }
}
